import request from '@/utils/request'
const api_name = 'user'

//注册请求
export default {
    register(params) {
        return request({
            url: `/${api_name}/register`,
            method: 'post',
            data:params
        })
    },
    //发送短信请求
    sms(params) {
        return request({
            url: `/${api_name}/sms`,
            method: 'post',
            data:params
        })
    },
    //登录功能
    login(params) {
        return request({
            url: `/${api_name}/login`,
            method: 'post',
            data:params
        })
    }
}
